//引入数据库
const db = require('../db/index')

exports.getId = (req, res) => {

    const album = req.body

    const sql = 'select album_id from album where album_name=?'

    db.query(sql, album.album_name, (err, results) => {
        if (err) return res.cc(err)

        res.send({
            status: 0,
            data: results
        })
    })


}